/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thesis.haipv.qa.model;

import java.util.ArrayList;

/**
 *
 * @author PHANHAI
 */
public class Answer {
    private String id;
    private Question question;
    private String content;
    private int rate;
    private UserProfile responder;
    private ArrayList<Feedback> transaction;
    private long createTime;
    private int numTrust;
    private int numUntrust;
    private boolean canFeedback;

    public Answer() {
    }

    public Answer(String id, Question question, String content, UserProfile responder) {
        this.id = id;
        this.question = question;
        this.content = content;
        this.responder = responder;
        this.numTrust = 0;
        this.numUntrust = 0;
    }
    
    public Answer(String id, Question question, String content, UserProfile responder, int trust, int untrust) {
        this.id = id;
        this.question = question;
        this.content = content;
        this.responder = responder;
        this.numTrust = trust;
        this.numUntrust = untrust;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Question getQuestion() {
        return question;
    }

    public void setQuestion(Question question) {
        this.question = question;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public UserProfile getResponder() {
        return responder;
    }

    public void setResponder(UserProfile responder) {
        this.responder = responder;
    }

    public ArrayList<Feedback> getTransaction() {
        return transaction;
    }

    public void setTransaction(ArrayList<Feedback> transaction) {
        this.transaction = transaction;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createDate) {
        this.createTime = createDate;
    }

    public int getNumTrust() {
        return numTrust;
    }

    public void setNumTrust(int numTrust) {
        this.numTrust = numTrust;
    }

    public int getNumUntrust() {
        return numUntrust;
    }

    public void setNumUntrust(int numUntrust) {
        this.numUntrust = numUntrust;
    }

    public boolean isCanFeedback() {
        return canFeedback;
    }

    public void setCanFeedback(boolean canFeedback) {
        this.canFeedback = canFeedback;
    }

    public int getRate() {
        return rate;
    }

    public void setRate(int rate) {
        this.rate = rate;
    }
    
    
}
